package com.wqiuqiu.gulimallsearch.vo;


import com.wqiuqiu.common.PageUtils;
import com.wqiuqiu.common.to.es.SkuEsModel;
import lombok.Data;

import javax.jnlp.ClipboardService;
import java.util.List;

/**
 * 返回给页面的数据
 */
@Data
public class SearchResult {

    private List<SkuEsModel> products;
//    private PageUtils pageUtils;
    private Integer pageNum; //当前页码
    private Long total; //总记录数
    private Integer totalPages; //总页数
    private List<BrandVo> brands;
    private List<CatalogVo> catalogs;
    private List<AttrVo> attrs;

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandImg;
        private String brandName;
    }
    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;

    }
}
